<template>
  <div class="container">
    <div class="img">
      <img :src="ServiceProductFirstData.imgUrl" alt="imgUrl" />
    </div>
    <div class="advantages-container">
      <div class="advantages">
        <div
          v-for="(item, index) in ServiceProductFirstData.advantagesData"
          :key="index"
          class="advantage"
        >
          <div :class="item.icon"></div>
          <h2 class="title">{{ item.title }}</h2>
          <p>{{ item.content }}</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ServiceProductFirst",
  props: { ServiceProductFirstData: Object },
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.container {
  display: flex;
  width: 1200px;
  height: 450px;
  justify-content: center;
  margin: 100px auto;
  .img {
    height: 100%;
    width: 500px;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .advantages {
    display: flex;
    flex-wrap: wrap;
    .advantage {
      margin: 10px;
      padding: 25px;
      text-align: center;
      box-shadow: 0 15px 34px 0 #9193922b;
      .icon {
        margin: 20px 0;
        font-size: 50px;
      }
      .title {
        font-size: 21px;
      }
      p {
        margin: 10px 0;
        color: #8c8c8cff;
        font-weight: 400;
        line-height: 1.8;
        font-size: 14px;
        letter-spacing: 2px;
      }
    }
  }
}
</style>
